#define _CRT_SECURE_NO_WARNINGS 1

namespace xlh
{
	template<class Iterator, class Pef,class Ptr>
	class ReverseIterator
	{
	public:
		typedef ReverseIterator<Iterator, Pef, Ptr> self;
		

		self& operator++()
		{
			--_it;
			return *this;
		}

		bool operator!=(const self& s)
		{
			return _it != s._it;
		}

		Pef operator*()
		{
			return *_it;
		}

		Ptr operator->()
		{
			return _it.operator->();
		}


		Iterator _it;
	};
}